package com.sgb.kjwl.model.entity.self;

import android.os.Parcel;
import android.os.Parcelable;
import android.text.TextUtils;

import com.google.gson.annotations.SerializedName;
import com.sgb.kjwl.utils.NumberUtil;

import java.util.List;

/**
 * Describe:
 * Author:  yangLei
 * Date:    2021/4/12
 */
public class MyOfferEntity2 {

    //订单编号
    private String orderNo;
    //订单no
    private String orderNumber;
    //订单状态 0 待确认 1 待发车 2 运输中 3已完成 4 已取消 5已删除
    private int orderStatus;
    //待支付结束时间
    private String endTime;

    //goods_Offer 编号
    private String no;
    //栏高
    private String heightHurdle;
    //是否自卸1是
    private String isDump;
    //报价时间
    private String createTime;
    //"最新报价"
    private String recentQuotation;
    //"最新报价时间"
    private String recentQuotationTime;
    //信息费
    private String messagePrice;
    //运费
    private String freight;
    //运费单价
    private Integer freightUnit;
    //运费单位
    private String unit;
    //总运费
    private String allFreight;

    //总运程
    private String totalDistance;

    //当前位置 =》省名称
    private String currentProvinceNo;
    //当前位置 =》省名称
    private String currentProvinceName;
    //当前位置 =》市名称
    private String currentCityNo;
    //当前位置 =》市名称
    private String currentCityName;
    //当前位置 =》区名称
    private String currentDistrictNo;
    //当前位置 =》区名称
    private String currentDistrictName;
    //当前位置 =》详细地址
    private String currentDetailAddress;

    //装货时间
    private String shipmentTime;
    //截止装货时间
    private String shipmentEndTime;

    //更新时间
    private String updateTime;

    //货源No
    private String goodsSourceNo;
    //报价No
    private String goodsOfferNo;

    //车牌号
    private String carNumber;
    //车no
    private String driverNo;
    //车型
    private String carTypeName;
    //车型no
    private String carTypeNo;
    //车长
    private String carLenName;
    //车长no
    private String carLenNo;

    //省名称
    private String provinceName;
    //市名称
    private String cityName;
    //区名称
    private String districtName;
    //详细地址
    private String detailAddress;
    //目的地 =》省名称
    private String destProvinceName;
    //目的地 =》市名称
    private String destCityName;
    //目的地 =》区名称
    private String destDistrictName;
    //目的地 =》详细地址
    private String destDetailAddress;

    //新增字段  json
    private String addField;
    //备注
    private String note;
    //联系人
    private String contrcts;
    //联系人电话
    private String contrctsNumber;
    //报价状态： 1已报价  2待支付  3已支付 4超时未支付 5货主未同意
    //普通货源报价状态：1已报价 2待支付 3已支付 5已失效
    private int offerStatus;
    //driver_auth 表内的姓名
    private String driverName;
    //公司名称
    private String companyName;

    //自定义字段
    private List<AddField> diyField;

    //货源报价截止时间
    private String goodsEndTime;

    //运输距离
    private String distance;

    //货物类型
    private String goodsTypeName;
    //货物体积
    private String volume;
    //重量
    private String weight;
    //货源  0 普通 1竞价
    private int pattern;

    private long inTime;//进场时间
    private int startPointTime;
    private int endPointTime;

    public int getStartPointTime() {
        return startPointTime;
    }

    public void setStartPointTime(int startPointTime) {
        this.startPointTime = startPointTime;
    }

    public int getEndPointTime() {
        return endPointTime;
    }

    public void setEndPointTime(int endPointTime) {
        this.endPointTime = endPointTime;
    }

    public long getOrderPayTime() {
        return orderPayTime;
    }

    public void setOrderPayTime(long orderPayTime) {
        this.orderPayTime = orderPayTime;
    }

    private long orderPayTime;
    //车辆图片
    private String carImage;
    private String carOfferNo;//2.0.3报价新增修改状态用
    private String failureCause;//2.1.2失效原因

    private String secondGoodsTypeName;//2.1.4新增 二级货物类型。

    public String getOfferTime() {
        return offerTime;
    }

    public void setOfferTime(String offerTime) {
        this.offerTime = offerTime;
    }

    private String offerTime;

    public String getGoodsOfferNo() {
        return goodsOfferNo;
    }

    public void setGoodsOfferNo(String goodsOfferNo) {
        this.goodsOfferNo = goodsOfferNo;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public int getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(int orderStatus) {
        this.orderStatus = orderStatus;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getHeightHurdle() {
        return heightHurdle;
    }

    public void setHeightHurdle(String heightHurdle) {
        this.heightHurdle = heightHurdle;
    }

    public String getIsDump() {
        return isDump;
    }

    public void setIsDump(String isDump) {
        this.isDump = isDump;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getRecentQuotation() {
        return recentQuotation;
    }

    public void setRecentQuotation(String recentQuotation) {
        this.recentQuotation = recentQuotation;
    }

    public String getRecentQuotationTime() {
        return recentQuotationTime;
    }

    public void setRecentQuotationTime(String recentQuotationTime) {
        this.recentQuotationTime = recentQuotationTime;
    }

    public String getMessagePrice() {
        return messagePrice;
    }

    public void setMessagePrice(String messagePrice) {
        this.messagePrice = messagePrice;
    }

    public String getFreight() {
        return freight;
    }

    public void setFreight(String freight) {
        this.freight = freight;
    }

    public String getFreightUnit() {
        if (freightUnit == null) {
            return "元/吨";
        }
        if (freightUnit == 3) {
            return "元/方" + (TextUtils.isEmpty(volume) ? "" : " x " + NumberUtil.trim0(volume));
        } else if (freightUnit == 1) {
            return "元/趟 x 1";
        } else if (freightUnit == 2) {
            return "元/吨" + (TextUtils.isEmpty(weight) ? "" : " x " + NumberUtil.trim0(weight));
        } else
            return "元/吨";
    }

    public void setFreightUnit(Integer freightUnit) {
        this.freightUnit = freightUnit;
    }

    public String getAllFreight() {
        return allFreight;
    }

    public void setAllFreight(String allFreight) {
        this.allFreight = allFreight;
    }

    public String getTotalDistance() {
        return totalDistance;
    }

    public void setTotalDistance(String totalDistance) {
        this.totalDistance = totalDistance;
    }

    public String getCurrentProvinceNo() {
        return currentProvinceNo;
    }

    public void setCurrentProvinceNo(String currentProvinceNo) {
        this.currentProvinceNo = currentProvinceNo;
    }

    public String getCurrentProvinceName() {
        return currentProvinceName;
    }

    public void setCurrentProvinceName(String currentProvinceName) {
        this.currentProvinceName = currentProvinceName;
    }

    public String getCurrentCityNo() {
        return currentCityNo;
    }

    public void setCurrentCityNo(String currentCityNo) {
        this.currentCityNo = currentCityNo;
    }

    public String getCurrentCityName() {
        return currentCityName;
    }

    public void setCurrentCityName(String currentCityName) {
        this.currentCityName = currentCityName;
    }

    public String getCurrentDistrictNo() {
        return currentDistrictNo;
    }

    public void setCurrentDistrictNo(String currentDistrictNo) {
        this.currentDistrictNo = currentDistrictNo;
    }

    public String getCurrentDistrictName() {
        return currentDistrictName;
    }

    public void setCurrentDistrictName(String currentDistrictName) {
        this.currentDistrictName = currentDistrictName;
    }

    public String getCurrentDetailAddress() {
        return currentDetailAddress;
    }

    public void setCurrentDetailAddress(String currentDetailAddress) {
        this.currentDetailAddress = currentDetailAddress;
    }

    public String getShipmentTime() {
        return shipmentTime;
    }

    public void setShipmentTime(String shipmentTime) {
        this.shipmentTime = shipmentTime;
    }

    public String getShipmentEndTime() {
        return shipmentEndTime;
    }

    public void setShipmentEndTime(String shipmentEndTime) {
        this.shipmentEndTime = shipmentEndTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getGoodsSourceNo() {
        return goodsSourceNo;
    }

    public void setGoodsSourceNo(String goodsSourceNo) {
        this.goodsSourceNo = goodsSourceNo;
    }

    public String getCarNumber() {
        return carNumber;
    }

    public void setCarNumber(String carNumber) {
        this.carNumber = carNumber;
    }

    public String getDriverNo() {
        return driverNo;
    }

    public void setDriverNo(String driverNo) {
        this.driverNo = driverNo;
    }

    public String getCarTypeName() {
        return carTypeName;
    }

    public void setCarTypeName(String carTypeName) {
        this.carTypeName = carTypeName;
    }

    public String getCarTypeNo() {
        return carTypeNo;
    }

    public void setCarTypeNo(String carTypeNo) {
        this.carTypeNo = carTypeNo;
    }

    public String getCarLenName() {
        return carLenName;
    }

    public void setCarLenName(String carLenName) {
        this.carLenName = carLenName;
    }

    public String getCarLenNo() {
        return carLenNo;
    }

    public void setCarLenNo(String carLenNo) {
        this.carLenNo = carLenNo;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getDistrictName() {
        return districtName;
    }

    public void setDistrictName(String districtName) {
        this.districtName = districtName;
    }

    public String getDetailAddress() {
        return detailAddress;
    }

    public void setDetailAddress(String detailAddress) {
        this.detailAddress = detailAddress;
    }

    public String getDestProvinceName() {
        return destProvinceName;
    }

    public void setDestProvinceName(String destProvinceName) {
        this.destProvinceName = destProvinceName;
    }

    public String getDestCityName() {
        return destCityName;
    }

    public void setDestCityName(String destCityName) {
        this.destCityName = destCityName;
    }

    public String getDestDistrictName() {
        return destDistrictName;
    }

    public void setDestDistrictName(String destDistrictName) {
        this.destDistrictName = destDistrictName;
    }

    public String getDestDetailAddress() {
        return destDetailAddress;
    }

    public void setDestDetailAddress(String destDetailAddress) {
        this.destDetailAddress = destDetailAddress;
    }

    public String getAddField() {
        return addField;
    }

    public void setAddField(String addField) {
        this.addField = addField;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public String getContrcts() {
        return contrcts;
    }

    public void setContrcts(String contrcts) {
        this.contrcts = contrcts;
    }

    public String getContrctsNumber() {
        return contrctsNumber;
    }

    public void setContrctsNumber(String contrctsNumber) {
        this.contrctsNumber = contrctsNumber;
    }

    public int getOfferStatus() {
        return offerStatus;
    }

    public void setOfferStatus(int offerStatus) {
        this.offerStatus = offerStatus;
    }

    public String getDriverName() {
        return driverName;
    }

    public void setDriverName(String driverName) {
        this.driverName = driverName;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public List<AddField> getDiyField() {
        return diyField;
    }

    public void setDiyField(List<AddField> diyField) {
        this.diyField = diyField;
    }

    public String getGoodsEndTime() {
        return goodsEndTime;
    }

    public void setGoodsEndTime(String goodsEndTime) {
        this.goodsEndTime = goodsEndTime;
    }

    public String getDistance() {
        return distance;
    }

    public void setDistance(String distance) {
        this.distance = distance;
    }

    public String getGoodsTypeName() {
        return goodsTypeName;
    }

    public void setGoodsTypeName(String goodsTypeName) {
        this.goodsTypeName = goodsTypeName;
    }

    public String getVolume() {
        return volume;
    }

    public void setVolume(String volume) {
        this.volume = volume;
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    public int getPattern() {
        return pattern;
    }

    public void setPattern(int pattern) {
        this.pattern = pattern;
    }

    public String getCarImage() {
        return carImage;
    }

    public void setCarImage(String carImage) {
        this.carImage = carImage;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getCarOfferNo() {
        return carOfferNo;
    }

    public void setCarOfferNo(String carOfferNo) {
        this.carOfferNo = carOfferNo;
    }

    public String getFailureCause() {
        return failureCause;
    }

    public void setFailureCause(String failureCause) {
        this.failureCause = failureCause;
    }

    public String getSecondGoodsTypeName() {
        return secondGoodsTypeName;
    }

    public void setSecondGoodsTypeName(String secondGoodsTypeName) {
        this.secondGoodsTypeName = secondGoodsTypeName;
    }

    public long getInTime() {
        return inTime;
    }

    public void setInTime(long inTime) {
        this.inTime = inTime;
    }
}
